<?php
class TeamRankingsController extends AppController {

	var $name = 'TeamRankings';
	var $paginate =	array(
		'order' => array(
			'TeamRanking.iSeason' => 'asc',
			'TeamRanking.iGroup' => 'asc',
			'TeamRanking.iRanking' => 'asc'),
		'limit' =>32,
	);

    function index() {
    	$this->TeamRanking->recursive = 3;
        $teamRankings = $this->paginate('TeamRanking');
        if (isset($this->params['requested'])) {
            return $teamRankings;
        } else {
            $this->set('teamRankings', $teamRankings);
        }
    }
}
?>